import parole
from parole.colornames import colors
from parole.display import interpolateRGB
import pygame, random

import sim, main
from util import *
from dungeon import makeFloor, Room, TemplateRoom
import dungeon

template = \
"""
#############
###    o  ###
##  o       #
###         #
#    o   o  #
#  o        #
#          ##
####  o     #
##         ##
#############
"""[1:]

legend = {
     'o':    parole.map.MapObjectGenerator("", 
            lambda: sim.Obj('amethyst deposit', 100, parole.map.AsciiTile('o',
                colors['DeepPink'], bg_rgb=colors['CadetBlue']),
                blockMove=False, blockLOS=False), clearFirst=False),

    '#':    dungeon.rockGenerator(colors['DimGray']),
}

# In the future light casts through amethyst deposits will turn purple
# and be slightly amplified.

floorColor1 = colors['CadetBlue']
floorColor2 = colors['Purple']
floorName = 'striated rock floor'
mixture = 0.3

diggable = [
    (13,4),
    (0,6),
]

class AmethystVein(TemplateRoom):
    def __init__(self, pos):
        TemplateRoom.__init__(self, template, legend, diggable, pos,
                floorColor1, floorColor2, mixture, floorName)
        
roomClass = AmethystVein

